#ifndef UTILS_H
#define UTILS_H

char *trim(char *str);
void sendline(int connfd, char *fmt, ...);
void sendmime(int connfd, int status, char *title, off_t length);
ssize_t writen(int fd, const void *vptr, size_t n);
void log_pid(char *pidfile);
int file_exist(char *dir, char *file);

#endif
